package Tree;

import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

public class ListPrac {
    public static void main(String[] args) {
        List<Integer> l = new LinkedList<>();
        for (int i = 0; i < 10; i++) l.add(i);
        Collections.reverse(l);
        for (Integer a : l) System.out.println(a);
    }
}
